Driver Code
public static void Main ( string [ ] args ) { List < string > v = new List < string > ( ) ; v . Add ( " tom " ) ; v . Add ( " jerry " ) ; v . Add ( " jerry " ) ; v . Add ( " tom " ) ; Console . WriteLine ( removeConsecutiveSame ( v ) ) ; } }