Appinventiv Interview Question

String reversal