@Arjun Sir
In Question it has given "If the data of all nodes of double linked list is same". So should i take doubly linked list with all the node with same value ?
After taking a example like above, i am getting all the adjacent node with same data is getting delete and even the first node is also getting deleted at last.
please clear my doubt here.