add Solution 1-3 in Java
add Solution 1-4 in Java