Conduent interview question

core java