Tech Mahindra interview question

OOPs, Java Collections, C Programming