Accenture Interview Question

Write a program to print a pattern.