Suppose that the type of key in a hashing application you are implementing is string. Design and implement a hash function that converts a key to a hash value.
- Test your function by computing the hash values for the Java keywords.
- Was a key collision produced?