HackerEarth Gotta catch 'em all! problem solution - TheCScience