Infosys Interview Question

Write a program to reverse string . Sort the array