Dev Technosys Interview Question

Js star pyramid pattern inverted