Square pattern
I came up with this pattern of squares first in a SVG editor and then sat and coded this solution for it in about an hour.
I did use recursion to implement it. Would you be able to do the same without a recursion? Maybe a couple of for loops?