Pergunta de entrevista da empresa D. E. Shaw Research

Write C++ code for finding if a substring exists in a string.