This question tests your communication skills and EQ. Being mature enough to accept feedback and criticism positively, even when it is unsolicited, is the aim here. Taking the feedback to heart and applying it towards your professional growth exhibits valuing any opportunity to grow.
However, not all feedback will be delivered in a friendly, easy-to-absorb manner. If the person was confrontational, demeaning, or negative, you should observe, listen, and consider what might have contributed to their approach. In most scenarios, it speaks to a person's attitude or life view if they come across as negative, toxic, or abusive in their interpersonal skills. Understanding that their attitude is a reflection of them and not you exhibits a high EQ. Think of a time when you received feedback or criticism, whether well delivered or misplaced. Discuss how you reacted productively. Highlight what you learned from it.