Create Distinct Subsequences DP explanation