Update TwoSum.java

Accepted answer at http://oj.leetcode.com/problems/two-sum/