Hexaware Technologies Interview Question

Write a program to print pyramid pattern?