Geothermal energy production utilizing a U-shaped well in combination with supercritical CO2 circulation