This is an extremely simple example that ChatGPT screws up maximally.
If it can't be trusted for a simple, obvious example, why should it be trusted in less obvious cases were accuracy and reliability are important.
Answer --- it shouldn't. Maximal cost with minimal reliability.