Synoriq interview question

Print center hollow triangle pattern