Shinju and the Lost Permutation

Problem Name:
Shinju and the Lost Permutation
Site:CodeForces
Links:
Tags:
Problem setters: