GGK Tech interview question

Butterfly pattern printing.