Intel Corporation Interview Question

Write a function that reverses a node list