結果 : explain time complexity of an algorithm with example