JPMorganChase Interview Question

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