DXC Technology interview question

To reverse a string in python