Stetig Consulting interview question

Coding questions based on star patterns were asked with few basic questions too.