input: Write a function to print a staircase of height 'n' where each row is right-aligned, with the maximum width being 'n'. If 'n' is 0, the function should print an empty line.
  
  def staircase(n): 
      for i in range(1, n + 1): 
          print(" " * (n - i) + "#" * i)
  
  # Test cases
  assert staircase(5) == """    #
     ##
    ###
   ####
  #####"""
  assert staircase(0) == ""
  assert staircase(1) == "#"
  assert staircase(2) == """ #
  ##"""
output: def staircase(n): 
      for i in range(1, n + 1): 
          print(" " * (n - i) + "#" * i)