結果 : time complexity of reverse function in python