How Does ChatGPT Think? Large Language Models Explained