Leetcode java version