Leetcode Minimum Swaps To Sort Array Php Functions W3schools