compiles and runs correctly. this is a hash function program