1. What was the problem you were trying to solve? Why did you solve it this way?
2. If you were the decision maker, why did you choose this technology stack?
3. I see you have a lot of Python/Java/... experience. What do you like and dislike about about Python/Java/...?
No need to get into your hobbies and how you would invert a binary tree. Generally, neither of those are relevant questions.
Unless you're at FAANG and there is a line of amazingly qualified candidates out the door and around the corner, the above will effectively screen for competent software developers, assuming the interviewer is technically competent.