Siemens Interview Question

One pattern printing question which was basic.