Verkada interview question

Implement a regex acceptor