Domanda di colloquio di MRSOOL

Search in reverse sorted array. Make a string palindrome by adjacent swaps.