Permutation Restoration

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