text: #include <stdio.h>
  #include <string.h>
  
  unsigned int hash(char *key) {
    char *p = key;
    unsigned int  h = 37;
    while (*p != '\0') {
      h = h * 147 + *p;
      p++;
    }
    return h;
  }
  
  int main() {
    printf("hash()=%u\n", hash(""));
    printf("hash(h)=%u\n", hash("h"));
    printf("hash(he)=%u\n", hash("he"));
    printf("hash(hel)=%u\n", hash("hel"));
    printf("hash(hell)=%u\n", hash("hell"));
    printf("hash(hello)=%u\n", hash("hello"));
  }
  