Okay kiddo, imagine you have a bunch of colored beads that you need to sort out in a certain order. Let's say you want to put all the red beads first, then the blue beads, and finally the green beads.
Now, imagine you have a long string that you can use to move these beads around. You want to use this string to pick up each bead and put them in the right order.
But wait, you also have to make sure that each time you move a bead, it's in the right place. That's where the loop i bubble comes in.
The loop i bubble is a way for you to keep track of each bead and make sure it's in the right place in relation to the other beads. In other words, you use the loop i bubble to double-check that everything is sorted correctly.
So, every time you move a bead, you check it against the loop i bubble. If it's in the right place, you move on to the next bead. If it's not in the right place, you swap it with the bead that's in the right place, and then check the next bead.
You keep doing this until all the beads are in the right order. And that's how you use the loop i bubble to sort beads!