Geekster interview question

valid parenthesis,Remove duplicates from linkedlist.