Coding Challenge - Blockly maze tutorial 2 (loops)

Solve the maze using a loop 

In the maze below, the number of blocks you are allowed to use is limited to 12, so we cannot solve this problem without using loops.


Note: The repeat block is equal to 2 blocks.