FICO interview question

Find number of subsequence present in string.