How to solve this question?

Given a LinkedList and an integer not necessarily single digit it could be for example : 7, 12

return the product of the linked list with the integer.

eg: 1 -> 2 -> 3 -> Null
integer : 12

return 1 -> 4 -> 7 -> 6 -> Null

Comments (1)