add java solution for DoubleSquares