Add java solution to challenge 3