These are the linked list problems every placement candidate should be able to solve, from printing a list to sorting and reordering one. Each program reads the values, builds the nodes, and changes only the links. Draw the nodes for a small input first, then run your program on every test.