not sure why this gives me an infinite loop error. I run it locally in IntelliJ as well as here and it gives me the correct answer each time. Validation fails and it says "looks like you have an infinite loop"... I don't see how since the code finishes and exits each time.