HackerEarth Find Mode Solved