Microsoft Interview Question

Implement find and replace.