HackerEarth Round Table Meeting problem solution - TheCScience