Verizon interview question

Detect substring in a string.