LeetCode in java