結果 : how to avoid stack overflow in recursion java