Count Swaps During Custom Sorting Leetcode, You must solve … This Leetcode problem is a great example of custom sorting.