Pregunta de entrevista de Accenture

Print right angle triangle pattern with * only. Using for loop.