The aim is to get to the end (the brown square) by jumping on the black lines- one of them moves and you can climb the vertical one!
This is actually Jump from scratch, coding for beginners book but modified so I would probably thank scratch itself (or whoever made that book).