Perfect Permutation

Problem Name:
Perfect Permutation
Site:CodeForces
Links:
Tags:
Problem setters: