Tech Mahindra interview question

nothing unexpected