Leetcode Question 21 Recursive Process