DXC Technology interview question

swap two numbers. Reverse string