Amazon interview question

implment hashtable and collision function