[CTCI] Added a method to Linked List

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