Am not able to get the answer of this question when i want to count the total number of subsequences , please solve my doubt