The answer would be B.
H2O is polar and forms hydrogen bonds with itself but O2 is nonpolar and can only form weak(van der waals) interactions.
It turns out that many materials can be solid at a higher temperature if the pressure is also higher. so even though it is hotter in the inner core the pressure in the core is also higher and you can have a solid iron nickel instead of liquid