Appirio Interview Question

Pattern program to print X in Java, C++ or C