Puzzel Example

8
9
0
1

I have only done a check for the first 4 blocks to see if they are correct, if they are the red square turns green

Editor