Tech Mahindra interview question

Implementing queue using linked list