Question d’entretien chez Google

Pretty straightforward question to do with finding substrings in strings