Output may be through STDOUT or an argument returned by a function. In this case it may be a string with newlines, a 2D character array or an array of strings.
You can consistently choose any two characters for representing the board.
You can consistently choose the direction of growth. That is, instead of the above representations (which grow downward and rightward), you can produce any of its reflected or rotated versions.
Trailing or leading space is allowed (if output is through STDOUT), as long as space is not one of the two characters used for the board.
You can optionally use "\$0\$-indexed" input; that is, take as input \$S-1\$, which specifies a board with \$S\$ layers.
Became Hot Network Question