In fairness it actually works out the correct answer fairly quickly (20 lines, including a false start and correction thereof). It seems to have identified (correctly) that this is a tricky question that it is struggling with so it does a lot of checking.
You’ll get some eye rolls from people when you bring that up for Sally.
But there are several names that used to be considered male but are now female, like Leslie and Marion. I don’t think I’ve ever met a man name Marion, but you still occasionally run into a Leslie.
It would be interesting to start using Leslie for this little logic puzzle and see how that affects people’s answers.