Pergunta de entrevista da empresa Deloitte

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