Descriptions:

Appending Mex

CodeForces - 1054B