Difficulty Level: MEDIUM
Problem Statement:
Write a Java Program that takes a list in non-decreasing order and deletes all the duplicate nodes from the list.
Input:
List before removal of duplicates: 34 34 45 45 45 67 98
Output:
List before removal of duplicates: 34 45 67 98