結果 : time complexity using step count method