Cognizant interview question

Piramid using any programming language