Find Subsequences Leetcode Javascript Practice