Codeforces Round #623 (Div. 2)C. Restoring Permutation

NoSuchKey