Meta interview question

Simplified Regex Interpreter