If you happen to be asked such questions it might be a good indication that the type they are looking for is code monkey. Or they are just not good enough to assess engineering skills. In both cases it's a red flag.
Yeah, basically one should always remember that interview with a company always works both ways. It's OK to ask questions or just listen to your internal BS-o-meter while talking with company reps.