WebKul interview question

Pattern questions based on loops.