Deloitte Interview Question

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