Sponsored
Use these hints if you're stuck. Try solving on your own first.
Sort the array in increasing order and then swap the adjacent elements.
Solve with full IDE support and test cases