Spacewell interview question

Printing Paatterns