Alice, Bob, and Carol each wear a hat — one red, one blue, one green. Alice says 'I'm not red'. Bob says 'Carol is blue'. Carol says 'I'm not green'. Exactly one of them is lying. Who wears what color? Explain step by step.
Run it instantly on a hosted generator — no setup, no GPU.