How can e print all occurences of the pattern in the string?What change is needed in the code?I tried removing the return statement inside the first if block so that a new hash value is evaluated everytime after the first if block,but it doesnt work like that
abbabcabbcabba
abba
I want to make the code work for the above inputs