Microsoft Interview Question

Q: Create a hashing function from scratch.