結果 : recursive vs iterative algorithm