Ambesh Tiwari's submission of Permutation Composition Queries | CodeChef