Microsoft Interview Question

Implement find function of words