LinkedIn Interview Question

Find and replace a sequence in a string