Infosys interview question

Create a pyramid pattern using C++.