Cognizant Interview Question

Piramid using any programming language