Domanda di colloquio di Goldman Sachs

FInd the repeated elements in an array(java) Rain water problem