Pergunta de entrevista da empresa FICO

Find number of subsequence present in string.