Using Hash function and LinkedList