Ruby simple bar graph challenge using arrays : I am really new to Ruby and am trying to solve the following challenge, which is to create a simple bar graph program using Ruby: 

[Challenge picture][1]


  [1]: https://i.stack.imgur.com/y6h3i.png

This is a challenge that comes as part of a tutorial on Arrays, so I think that the aim is to use an array. My thinking is to convert the user's input into an array, iterate over each number and print the corresponding number of dashes for each number. I can't work out how to do this however. Any advice would be appreciated.

Thanks :) 
