Pergunta de entrevista da empresa Capgemini

to write a program to print a square pattern