SpidronTech Interview Question

Explain Java code for star program.