Remove Duplicates from Sorted List - Garbage


#1

I am getting garbage in the list, any help?