Mahindra interview question

nothing specific