LogicMonitor Interview Question

Wasn’t able to get this far