Alarm.com interview question

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