Pregunta de entrevista de Nexgile Technologies

Write a java program to print the duplicate number from an array and print the duplicate sum?