0

Take an array of nonnegative integers, such as [1, 0, 0, 1, 2, 4, 2, 0]. Then, draw that as a mountain where the integers represent altitude:
x
x x
x x
xx x
You may use any printable non-whitespace character in place of x, and adding padding or whitespace after line...