Question d’entretien chez Amazon

Write a function to find a substring in a string.