Permutation Chain

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