I wonder why they haven't built in the capability for ChatGPT to simply say, "I don't know." The solution it gave is so obviously wrong.
(I haven't used it for previous problems, not that anyone accused me. But this one seemed especially suitable to test on chatgpt, and it failed pretty miserably.)