Apple interview question

Detect a string within another larger string