nCircle Tech interview question

About linked list , deque