I don't know if this is legitimate question for an interviewer to ask, but it is definitely possible. I don't like the question, but at least we should think about it and prepare an answer. If you have been looking for a job for like eight months, it could sound like you are a bad candidate because nobody wants to hire you. Instead, I would take a different approach than answering honestly. If the resume shows you have been out of work for a year, then you have to explain the one year. You have two options. First, you can be honest and say you have been looking for one year, or you can think of a good excuse. It's hard to lie and sound believable so I'm going to give an honest answer. If you have a good excuse for not working for a long duration, feel free to use that as an excuse.