Colourful Permutation Sorting

Problem Name:
Colourful Permutation Sorting
Site:CodeForces
Links:
Tags: