Pregunta de entrevista de Tata Consultancy Services

Star Patterns in Java using for loop.