Problem -> Problem
I am trying something similar to digit dp where we need to find the number of numbers in the range a to b satisfying some property, just in this case we have strings.
My helper function is actually calculating the number of good strings which are lexicographically less than or equal s and do not contain the substring evil.
Then I simply subtract the answer for two cases.
Please help me it's almost two weeks
Spoiler
This solution only passes 15 test cases. Help me please.