Pergunta de entrevista da empresa Tata Consultancy Services

Star Patterns in Java using for loop.