Domanda di colloquio di Amazon

Interviewer asked to write a Java code for an array {1,1,2,5,4,1,1} and need to sum the non repeatable numbers