Custom hashmap and reversing a linked list.