GRAIL interview question

String matching and manipulation.