WebKul interview question

Simple pattern making