Pergunta de entrevista da empresa W3 Engineers

A simple basic loop problem. Pattern print.