Pregunta de entrevista de Siemens

One pattern printing question which was basic.