Dev Technosys interview question

Js star pyramid pattern inverted