Mahindra interview question

Technical questions