Basic refresher

q.1-find the array whose position is not changed after sorting in ascending order
q.2-how to reverse a string at index position
can you please help with the code, got confused.