Uses a hash function to directly compute the index of the target, allowing for average O(1) search time.
Explain code with DocComment! Try out your own code!