Inno Valley Works Interview Question

Print patterns using for loop