HCLTech interview question

write a program to print a pattern ?