Bitwise interview question

Pattern printing in java.