"Do you like to work by yourself or with others?"Even if you have a strong preference to work alone or with others, the best answer is to say both. Even if a job is mostly about working alone, there might be some team work involved. Most employers want someone who can work well in a team and work well alone.
"That's a tough question... I like the combination of the two. It's great working in teams while getting and sharing ideas with each other, but it's also nice to sit at your desk and work hard productively. I like to do both so it's hard to choose one over the other."If they insist on choosing one, then choose the one that is relevant to the job you are interviewing for. Make sure you pause a little before saying so.
"If I had to choose just one, then... I'd probably choose to work alone."