BenevolentAI interview question

Implement a simple regex parser and executor