Tech Mahindra Interview Question

Reverse the array in string