Maxis Interview Question

write pseudo code in whiteboard to create triangles