Distinct Sunsequences

Exercise from LeetCode, it is accepted