A very cool feature of ChatGPT is if you give it a coding problem and it gets it wrong, you can tell it that and it will try to spot where it went wrong and come up with the correct answer. I got this to work over 6 iterations until it found the right answer!