Ideas2IT Interview Question

about the programming round earlier