Recursion Basic Leetcode Problems Sql