Frage im Vorstellungsgespräch bei Amazon

Given 1D array,print vertical bars representing # for each array from the bottom