Atlassian Interview Question

write a hash function