Sabre interview question

Build a simple hashing algorithm