I think the complexity of this method is O(n2), but it shouldn't matter too much since the since && can exit early, so the maximum number of iterations can only be 26 (by the pigeonhole principle).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Haskell
I think the complexity of this method is O(n2), but it shouldn't matter too much since the since
&&
can exit early, so the maximum number of iterations can only be 26 (by the pigeonhole principle).