Topic: Two Pointer Problem / Level: beginner

Problem: Find the minimum number of swaps required to make an array sorted using two pointers.

Run the code to see the output here...