ChatGPT is amazing. I did run some tests with it to see how it handles some leetcode style problems. However although it's scarily good it still has some issues producing correct optimized code. This solution from the wizards problem is actually wrong