XYZ Interview Question

Question on doubly linked list and pattern