FabHotels interview question

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