Aspire Systems Interview Question

print pattern using one loop