Coding the hash table, using quadratic methods to insert a key and calculates the collision index for #2