Wipro Interview Question

Find number of times a string occurs as a subsequence in given string