結果 : space complexity of recursive function