What do the failing tests say? Is your code running too slowly?
You never want to do this because a) it’s an indication that your code will be super slow, b) it is an indication that you’re using the wrong type of loop.
Could you please edit your title to be something meaningful?
Hi. I understand. I need to think of a new approach to the problem. Also, what is the “correct” type of loop if I were to pursue this kind of approach?