The mentor very obviously insulted the OP first though, by saying "anyone with a functioning brain" which by implication excludes the person asking the question. And then kicked him when he fired back, so... both were not behaving very well, but the mentor basically baited him into a kick.