Minimum Swaps to Form Subarray

Company: De Shaw_28thjuly

Difficulty: medium