Pergunta de entrevista da empresa Capgemini

How do make a triangular shape with basic loops?