Spraxa interview question

Print the pyramid patterns using any language (star pattern)