linklist practice problems
with hash functionality