Consider a staircase of size n = 4:
#
##
###
####
Observe that its base and height are both equal to , and the image is drawn using # symbols and spaces. The last line is not preceded by any spaces.
Write a program that prints a staircase of size n.
This problem comes from https://www.hackerrank.com/challenges/staircase/problem
Author vatsalchanana