Consumer Reports interview question

Java programming knowledge