IFS interview question

How would you implement a pattern like the one below using your familiar programming language? * ** *** **** *****