Pregunta de entrevista de Citi

Algorithms based on arrays . Print pattern