CodeForces#631Div.2B_Dreamoon Likes Permutations

NoSuchKey