Intellect Design Arena interview question

A pattern question was given to me and I was told to code it in Java on paper