LeetCode in Java