Egabi interview question

Java question