Delete middle of linked list
Given a singly linked list, the task is to delete the middle node of the list.If the list contains an even number of nodes, there will be two middle nodes. In this case, delete the second middle node.If the linked list consists of only one node, then return NULL.Example:Input: LinkedList: 1->2-