Ace Micromatic interview question

Matrics and pattern printing programs were asked