KPIT Technologies interview question

Write a program to print asterisk pyramid.