Leetcode 3587. Minimum Adjacent Swaps to Alternate Parity | Hello Interview