Here is GPT-4 answering your question:
“When Sally returns, she would look for her ball in box A, as that is where she left it before leaving. Sally is not aware that Anne moved the ball to box B while she was away.”
“When Sally returns, she would look for her ball in box A, as that is where she left it before leaving. Sally is not aware that Anne moved the ball to box B while she was away.”
Sally puts her ball in box A and leaves. While she's away, Anne moves the ball from box A into box B. When she returns, where does Sally look for her ball?
Correctly answering this question doesn't rely on tracking where the ball is, but tracking where Sally thinks the ball is. Hence, autistic kids tend to flunk this test by answering "box B" when the correct answer is "box A".