QA Interview Question

pattern program using single loop statement