Topic: Array Problem / Level: intermediate

Problem: Find the minimum number of swaps required to sort an array of distinct integers using cycle decomposition.

Run the code to see the output here...