Bitwise interview question

Pattern Drawing Program