I'm going through some introductory exercises and I can not understand how to get java to output a string of five letters in the particular pattern shown below.

Initially I thought it followed the tribonacci sequence for number of characters per line. Without just printing the line, I can not figure out how to have java logically replicate the pattern. They seem to copy each other, but don't really follow a pattern.