High C/O Ratio and Weak Thermal Inversion in the Very Hot Atmosphere of Exoplanet WASP-12b