Your answer should include both. Because missing out any one will hurt your chances of getting selected in interview. Below are the points that you can include in your answer.
- I would like to work in a team, so that I can learn from others.
- I also prefer working alone, I enjoy working in both situations.
Sometimes, I prefer working alone. Because when you work in a team, your hard-work and achievement will be considered as team achievements. But in reality I would have done most of the contribution. If I work independently all of my work will be recognized.