Leetcode 3109. Find the Index of Permutation | Hello Interview