Topic: Array Problem / Level: intermediate

Problem: Find the minimum number of swaps required to bring all elements smaller than a given number x together.

Run the code to see the output here...