FICO Interview Question

Find number of subsequence present in string.