Given the input
tilesY create a method that would make a rectangular ring from the tiles.
The function must order the tiles in a ring like this:
tilesYare always positive integer values, cannot be 0
tilesYare not always equal, expect values like:
- Checking for invalid input is not necessary
- You can use any way to display the tiles, including 2d arrays, ASCII art or printed text.
- There's no strict way how the input is passed as long as it's two integers.
- Cannot be a line, drawing a rectangle size of
tilesYpixels is not valid
- The shortest code wins