It’s bananas how many utterly crap candidates we get at the moment too.
One low point was an interview with a guy who connected with his current work laptop and couldn’t find the $ key on it for a basic scripting question.
I can’t make it make sense either.
We had a guy interview for a senior C++ position that hadn't used Git before and had no idea what a "merge" was.
Because the hoards of people who can't find the ` or | or $ on their keyboard outnumber competent people 100:1. I had this exact experience too, so frustrating. Moved to a strictly referral model where I pay my SWEs $10k if a candidate they refer gets hired.