The MEX problem

Problem Name:
The MEX problem
Site:HackerEarth
Links:
Tags:
Problem setters: