Create Q2.1 removeDup.java