Verkada Interview Question

Implement a regex acceptor