結果 : how to code a recursive function