Johnson Controls Interview Question

write a code to print a pyramid pattern of numbers.