Create TwoSum.java

The O(n) complexity implementation in Java for TwoSum problem.