Behind the Scenes of LLMs: How ChatGPT and DeepSeek AI Really Work