Spraxa Interview Question

Print the pyramid patterns using any language (star pattern)