Tech Mahindra interview question

On data structures