Minimize the Absolute Difference with Minimum Swaps

Company: Wipro_14march

Difficulty: medium