Pregunta de entrevista de Oracle

Make a given pattern taking 2d array as input.