Add java solution for problem 20