Pregunta de entrevista de Deloitte

A simple Programming question on how you would detect a word in a string