Pregunta de entrevista de MRSOOL

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