NTT DATA interview question

Function of linked list and queue