Permutation Shift

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