Solve LeetCode Problems with Java8