Tech Mahindra interview question

Available online