Leetcode 2366. Minimum Replacements to Sort the Array | Hello Interview