[CTCI] Partition linked list problem

Signed-off-by: Siddharth Goel <siddharth98391@gmail.com>