MathWorks interview question

What is a hash function?