leetcode java implementation