Domanda di colloquio di Wipro

Gave two programming questions to draw 2 patterns.