Pregunta de entrevista de Tata Consultancy Services

Coding to draw a pattern in python