The sample answer gives an idea of how you could respond to this type of question. Obviously there are many different ways to answer it - depending on your own experience and knowledge.
IELTS Speaking Test Answer | Being nice (polite) to someone you dislikeI can remember one occasion when I had to work as part of a team for a group project last semester at university. In our group there was one person who I disliked (a little) because he was always trying to force his opinions on the other members of the group and wasn't very interested in hearing the ideas and views of the other people in the group. The idea of group work is that everybody can make a contribution for the overall benefit of the group and not just follow the person who is most opinionated or bossy.
Anyway, we had to work together over a period of about four months and it was difficult at times because of his personality. However, it was important for the group to develop the project as part our coursework and therefore it was necessary for us to all work together and try to maintain a good working relationship even though it was strained at times.
Although it was difficult at first because of his personality and the fact that he always thought that he was right and had the best ideas, eventually we all managed to work as a team and by the end of the project he wasn't really as bad as he had been at the beginning and was more willing to collaborate with the rest of us in the group. And that was my experience of being nice (polite) to someone I disliked.