Meta interview question

Some easy substring problem