HCLTech interview question

Write a programme to print stars