Tech Mahindra interview question

very easy question just basics