Leetcode 1806. Minimum Number of Operations to Reinitialize a Permutation | Hello Interview