I wonder if this is not an issue with the input rather than the output? Even with two humans, wrong question will lead to wrong answer. I ask this, because out of curiosity I had ChatGPT do the first 20 challenges on leetcode and it was successful 100% of the time.