Turning Permutation

Problem Name:
Turning Permutation
Site:CodeForces
Links:
Tags: