GlobalLogic interview question

Reverse a string . Swapping two numbers