Rosetta Problems

Mex [prefix] = [suffix]

https://kep.uz/practice/problems/problem/1863