Squash Apps Interview Question

Write a java program to print a pattern.