Early Results from GLASS-JWST. XXI: Rapid assembly of a galaxy at z=6.23 revealed by its C/O abundance