Consider the following function that takes reference to head of a Doubly Linked List as parameter. Assume that a node of doubly linked list has previous pointer as prev and next pointer as next.
```
void fun(struct node **head_ref)
f
struct node *temp = nULL;
struct node *current = *head_ref;
while (current != NulL)
l
temp = current->prev;
current->prev = current->next;
current->next = temp;
current = current->prev;
l
if(temp != null)
*head_ref = temp->prevs
}
```
Assume that reference of head of following doubly linked list is passed to above function
123456.
What should be the modified linked list after the function call?
A. 214365
B. 543216 .
C. 654321 .
D. 654312