coMakeIT interview question

Program to generate Pyramid