GRAIL Interview Question

String matching and manipulation.