Capgemini interview question

How do make a triangular shape with basic loops?