Once that works, take a look at comment (2), and using your GetNode
function, build a linked list with a head and tail pointer such that
new nodes are added to the end of the list. For example, if the user
enters 6, 12, 5, and 4, the linked list should look like:
list:
-------------- --------- --------- --------- ---------
| head *---|------>| 6 | | 12 | | 5 | | 4 | <-------|
--------------- --------- --------- --------- --------- |
| tail *---|--- | *--|---->| *--|---->| *--|----> | *--|---| |
-------------- | --------- --------- --------- --------- |
| num_elms: 4| | |
-------------- | |
-----------------------------------------------------------------