Press Flag, and guess the right number in your first 10 tries to win.
From Coding For Beginners Using Scratch book, with help from @SillyBenny .