Pregunta de entrevista de Tata Consultancy Services

Logic and code of some print patterns