HackerEarth The maximum number problem solution - TheCScience