Jellyfish and Mex

Problem Name:
Jellyfish and Mex
Site:CodeForces
Links:
Tags:
Problem setters: