HackerEarth One-Sized Game problem solution - TheCScience