QA interview question

pattern program using single loop statement