C5i Interview Question

Pattern using nested loop