Pregunta de entrevista de Tata Consultancy Services

Write a Code for pyramid star pattern