Leetcode 3644. Maximum K to Sort a Permutation | Hello Interview