Ideas2IT interview question

about the programming round earlier