Domanda di colloquio di LTM Limited

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