so you are looking for the distance from one corner at the base of the cube to
the top corner of the opposite face on the other side.
This means you need to use Pythagoras' theorem twice,
first to find the length of the cube base diagonal,
then to find the distance between "opposite" corners.
You'll find D is the solution.