Datamato interview question

code to print pattern, star pattern in right angle triangle shape