HackerEarth Sherlock and Numbers problem solution - TheCScience