Nokia interview question

Java basics