Alarm.com Interview Question

How would you test this?