結果 : how to solve recursion problems in python