Qualcomm Interview Question

asked to use python to reverse a string,