Betaout interview question

He drew a pattern and asked me to write the code for it.