I tested ChatGPT with a coding question I've been asked many times in interviews, and was impressed to see it gave a correct solution. However it fails miserably at the tougher extended version of it which I've been asked on one occasion and personally struggled with.