2340: Minimum Adjacent Swaps to Make a Valid Array

Problem Statement