Pregunta de entrevista de ByteDance

Check if a string is a substring of another string.