Frage im Vorstellungsgespräch bei Nexgile Technologies

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