Urbanpro interview question

Find all subsequence and match with one give sequence