Singly Linked list, Hashmap, AC