BenevolentAI Interview Question

Implement a simple regex parser and executor