Deloitte interview question

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