Datma interview question

Q. Python Coding Question for Outputing Star Pattern