2366. Minimum Replacements to Sort the Array - Hard | DSA Corner | Talentd