LeetCode Implementation by Java