Mphasis interview question

how to implement hashmap and hashcode vs equals