Leetcode Recursion Questions In C