Find the Next!

Problem Name:
Find the Next!
Site:HackerEarth
Links:
Tags:
Problem setters: