Question d’entretien chez LTIMindtree

Reverse the String and find whether the array is sorted or not.