Amazon Interview Question

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