Pregunta de entrevista de Tata Consultancy Services

write a program to print pattern