Help needed in string hashing pls

Why my

submission

is giving me wrong answer. Can anyone provide any counter test case pls.