結果 : iterative approach algorithm