leetcode exercises in Java