My Java Code to LeetCode Online Judge questions