Update ThreeSum.java

the index error