WebKul interview question

Pattern coding was asked in 1st round