Pergunta de entrevista da empresa Hexaware Technologies

Write a program to print pyramid pattern?