Tech Mahindra Interview Question

very easy question just basics