Maxis Interview Question

Write programs that can do triangle *