I am leaving the company for another opportunity as I am quite dissatisfied about the behaviors of some colleagues. HR specifically asked me what I think about other people in my team in a meeting room. Since I'm not sure whether I will work for the company again, I lied and said everyone was nice and helpful, and I'm just not OK with the content of my work.
What is the purpose of this question? Should I be honest about the inappropriate words and behaviors of some of my team members if given a second chance? Or would it be fine to just focus on the good side of colleagues?