Sorting Algorithm With Minimum Swaps Leetcode Two