Comptel interview question

java related question