Leetcode in Java