Mark As Completed Discussion

We need a counter that checks to see if our current substring is valid or not. It'll start with the length of the required characters (since each needs to be present), and get decremented as required characters get processed.

JAVASCRIPT
OUTPUT
:001 > Cmd/Ctrl-Enter to run, Cmd/Ctrl-/ to comment