Create a function named pyramid which works just like your triangle function. But, it should be pyramid shaped.
pyramid
triangle
*
* *** ***** ******* *********
No new line in last line