Persistent Systems Interview Question

write a program to delete the middle node in linked list