Amazon interview question

reverse string in python and DSA questions