Leetcode Recursion And Recursive Functions Algorithm