SGEEDE interview question

Code an algorithm to display pyramid using your preferred language.