finish leetcode 145 Distinct Subsequences Problem