Pergunta de entrevista da empresa Gene by Gene

Find all instances of a substring in a given string.