Toppan Ecquaria interview question

Had to implement a method to remove duplicates without using the standard Java library, did not feel like you'll ever use this in real life.