Xilinx Interview Question

reverse a linked list