Microsoft Interview Question

Implement Python .replace(..) method