Question d’entretien chez MRSOOL

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