EY Interview Question

reverse a string in python