CTCI2.cc: add reverse linked list