Infogain interview question

Core Java