Comparing AI LLM with the exactly the same prompt is quite interesting. 
First Google Gemini which gives an invalid response (the syntax is not allowed). Then ChatGPT, which "knows" that the obvious response is not valid and gives an alternate working solution