Update 3Sum.java

Instead of using HashSet