Honeywell interview question

core java