solving LeetCode 150 problems in Java