"Will working on weekends be a problem?"If the interviewer is asking this question, then this position is probably going to requires some weekend work. Maybe it's not a lot, but they want to make sure that if something goes wrong and more work is required, you will be able to work on weekends. I recommend answer by saying it will not be a problem. If you want to find out how often you will have to work weekends, you can ask it after answering the question.
"It shouldn't be a problem at all. I frequently worked on weekends in my other position, especially during tax season. How often is weekend work required here on average?"This answer is stating that it is no problem. It also supports the answer by saying I have worked on weekends in my previous group. And the last sentence is an example how you can ask them about weekend work.