Rosetta Problems

Queries on a Permutation With Key

https://leetcode.com/problems/queries-on-a-permutation-with-key