Turtle and a MEX Problem (Easy Version)

Problem Name:
Turtle and a MEX Problem (Easy Version)
Site:CodeForces
Links:
Tags: