Pregunta de entrevista de Texas Instruments

Code how this pattern will form in C