HCLTech Interview Question

write a program to print a pattern ?