practice leetcode problems using java