Permutation Composition Queries | CodeChef