import random from collections import Counter MOD=2**61-1 base=random.randrange(100,MOD) def RollingHash(S,l): arr=[] if len(S)