Leetcode Minimum Swaps To Sort Arraylist Alphabetically