Amazon Interview Question

Remove substring from a string.