function to add numbers in a linked list…