Source: Two-Factor Authentication
Part 1: Implement a 50x6 pixel screen with the following commands:
rect AxB
turn on a rectangle of pixels in the top left cornerrotate row y=A by B
rotates rowA
right byB
pixelsrotate column x=A by B
rotates columnA
down byB
pixels
After a given sequence of commands, how many pixels are on?