Christmas tree

Function Kata „Christmas tree“

Write a function that „draws“ a Christmas tree with ASCII characters (ASCII art). The „picture“should be returned as a collection of strings. See the following example of a tree with height 5:

Variation #1

The Christmas tree may have a star at the top: