Hash Function(LintCode 128):

Problem