White Rabbit Group interview question

To print a Christmas tree pattern