adding values in LL iterative solution