Verkada interview question

not algorithm difficult but expectation is to write working code with a complex class abstraction.