Datamato Interview Question

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