Subsequence Using Recursion Leetcode Problems Sql Server