https://medium.com/@nagarjunareddy_68277/find-the-sequence-in-a-game-there-is-a-string-direction-of-length-n-that-consists-of-characters-149f2f308d8e