Alarm.com Interview Question

I/O optimization (not using java.util.Scanner)