solutions for LeetCode problems with Java