HackerEarth The maximum range problem solution - TheCScience