Then, using it is a matter of running the linked lists through it:

JAVASCRIPT
OUTPUT
Results will appear here.