Building Permutation

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