Leetcode 3431. Minimum Unlocked Indices to Sort Nums | Hello Interview