Find Subsequences Leetcode Python