Sharlin's submission of Permutation Composition Queries | CodeChef