結果 : iterative algorithm and recursive algorithm