W3 Engineers Interview Question

A simple basic loop problem. Pattern print.