Solution working locally but not online


#1

My solution works locally, but when I try to compile on here I’m getting weird behavior. Specifically it won’t let me run a simple loop over the length of the input string.