Codeforces 1158C Permutation recovery

NoSuchKey