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