Oracle Interview Question

Code for printing a pattern in Java