Toast Inc interview question

Review some existing java code.