Topic: Array Problem / Level: intermediate

Problem: Check if a given array can be sorted using only adjacent swaps where each swap operation is between two adjacent elements.

Run the code to see the output here...