Maxis interview question

write pseudo code in whiteboard to create triangles