GlobalLogic Interview Question

Reverse a string . Swapping two numbers