DXC Technology Interview Question

To reverse a string in python