leetcode solutions in java