Find and Replace Pattern

Find and Replace Pattern - Coding Problem | K5kC