HackerEarth Ants on a circle problem solution - TheCScience