HackerEarth Smallest number problem solution - TheCScience