I’ve walked out of interviews that had these popular puzzle questions in the 00s. The company you’re interviewing for is not testing you for your job, it wants a corporate drone that is ok with bureaucracy and can navigate the red tape they’ve put in place.
Really a waste of time, but if I run into this at my age now I ask if they can tell me how their company is making something for the betterment of human kind.