New Year and the Permutation Concatenation

Problem Name:
New Year and the Permutation Concatenation
Site:CodeForces
Links:
Tags:
Problem setters: