MathWorks Interview Question

What is a hash function?