Rehashing(LintCode 129):

Problem