Unable to detect the bug in the polynomial hash function
I am getting a WA on testCase 6.
Question — Div 2C
My Submission
Can someone please tell me what's wrong with the code?