SGEEDE Interview Question

Code an algorithm to display pyramid using your preferred language.