PC Technology interview question

Program for pyramid * ** ***