Swap alternate elements (1st ↔ 2nd, 3rd ↔ 4th, etc.).: Medium Programming Problem