solutions to leetcode problems which are written in java