Capgemini Interview Question

Some pattern printing using java