結果 : reverse function python time complexity