HackerEarth Coins problem solution - TheCScience