Sponsored
Use these hints if you're stuck. Try solving on your own first.
How can we update the hash value efficiently while iterating instead of recalculating it each time?
Use the rolling hash method.
Solve with full IDE support and test cases