Indice interview question

Explain to me the usage of a hash function