#454 Permutations and Queries