Add solution code for Problem: Distinct Subsequences