結果 : find time complexity of code