TATA ELXSI interview question

star pattern in any programming language.