LIBSYS (India) interview question

How to reverse a string in array ?