KPMG Interview Question

Pattern question was asked to print 1 to 9 in half triangle