LIBSYS (India) Interview Question

How to reverse a string in array ?