Adeptia Interview Question

Number of times a substring is present in other string