HackerEarth Monk and Chocolates problem solution - TheCScience