Added Java Solution

Added Java Solution
Streamlines Haskel Code