Pergunta de entrevista da empresa Big Oh Notation

Check if a string is a substring of another given string