Create middle element when head and tail are given.c

given a double linked list with head and tail pointers, find the middle element of the linked list