FabHotels Interview Question

Wap in java to remove duplicates from array without using java functions