Pregunta de entrevista de Capgemini

to write a program to print a square pattern