Pregunta de entrevista de Cognizant

Departmental as well a java program on variance