Domanda di colloquio di Amazon

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