Unable to detect the overflow in the polynomial hash function
I am getting a WA on testCase 6.
Question — Div 2C
My Submission
Codeforces Round 946 Solution Discussion