Question d’entretien chez D. E. Shaw Research

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