Maxis interview question

Write programs that can do triangle *