Pregunta de entrevista de JPMorganChase

How do you remove duplicates in integer array without using any java util framewworks?