IBM Interview Question

DSA question Reverse the String