Sollicitatievraag bij Amazon

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