Minimum Adjacent Swaps to Group Identical Elements

Company: Corridor_1oct

Difficulty: hard