Question d’entretien chez Accenture

Write a program to print a pattern.