Examples:
steps(2)
'# '
'##'
steps(3)
'# '
'## '
'###'
steps(4)
'# '
'## '
'### '
'####'
function steps(n, row = 0, stair = '') { if (row === n) { return; } if (n === stair.length) { console.log(stair); steps(n, row + 1); return; } else { if (stair.length <= row) { stair += '#'; } else { stair += ' '; } steps(n, row, stair); } }