Find the largest discrepancy of any stepstring in a string.
Nothing too surprising in the implementation. Note that to be able to efficiently handle 10000-character strings, we need to reuse as much work as possible. To that end, we need to be strategic about how we vary the parameters. Details in the code.