AutoRABIT interview question

Java code written on paper