Slack interview question

Explain how hashing works