Minimize Integer Difference with Minimum Swaps

Company: Wipro_16may

Difficulty: medium