Pregunta de entrevista de Genius Minds

What is the code for this pattern (Pattern based question)