CRI Group interview question

Java basics