Topic: Array Problem / Level: intermediate

Problem: Rearrange an array such that the elements form a palindrome by making at most one adjacent swap.

Run the code to see the output here...