Tech Mahindra interview question

Why this