The following C function takes a singly linked list as an input argument. It modifies the list by moving the last element to the front of the list and returns the modified list. Some part of the code is left blank.
```
typedef struct node I
int value;
struct node * next?
1 Node;
Node *move_to_front (Node *head)
i
Node 'p, 'q;
If({lead = = nuLL || (head->next = = NULL))
return heads
q = NuLl; ; p = head;
while {p-> next !=NULL) !
q=p;
p=p->next,
return head;
l
```
Choose the correct alternative to replace the blank line
A. $\mathrm{q}=$ NULL; $\mathrm{p}->$ next $=$ head; head $=\mathrm{p}$;
B. $q$->next $=$ NULL; head = p; p->next $=$ head;
C. head = p; p->next = q; q->next = NULL;
D. $q$->next = NULL; $p$->next = head; head = p