Pregunta de entrevista de Wipro

Gave two programming questions to draw 2 patterns.