Mphasis interview question

core java