Indeed interview question

Implement Hash