No confirmed answer for this one. The usual approach is trial and error — clicking the cupcakes along the bottom row tends to get most players furthest.
If you're stuck, watch the pattern for a couple of attempts before committing. Levels like this generally reward noticing which positions reset you, and a few careful runs beat frantic clicking.