updated Ctci for linked lists