ANR Software Interview Question

Print a triangle pattern using for loop