結果 : reverse function in python time complexity