Knovos interview question

core java top to bottom