DXC Technology Interview Question

swap two numbers. Reverse string