Remove duplicate elements from the given linked list
Given a linked list, you are asked to remove all the duplicates and print the resulting list with only unique values.
The initial data for the linked list is obtained automatically. You don’t need to do anything. It’s guaranteed that the size of the linked list does not exceed and the values don’t exceed in absolute value.