Topic: Two Pointer Problem / Level: intermediate

Problem: Determine the minimum number of swaps required to sort an array using two pointers.

Run the code to see the output here...