Melento interview question

Printing a pattern for stars