Oracle interview question

Code for printing a pattern in Java