Queries on a Permutation With Key SolutionsNumber 1409Difficulty MediumAcceptance 81.5%Link LeetCodeSolutionsC++