Accenture interview question

Write a program to print a pattern.