My solution of Leetcode oj in Java