Sum consecutive duplicates in a linked list · 2daysbeforeinterview