Citi interview question

core Java questions