WebKul interview question

Pattern Printing in round 1