Is brian right? or am I in the wrong?

so I was telling my guy friend (lets call him brian) that a coworker guy (let's call him alex) complimented my butt. this is how it went our conversation first. alex first approached me and said "you know, some guys were curious about ur ass and now they got to see it finally bc u always wearing baggy clothes" and I was like "really? why?" And he said "well you know we are guys so we like to see that" and I was like "omg" and then he said "but u do have a nice butt" I felt so embarrassed. but he laughed and I just said "haha so funny" to him. it was unexpected so i didn't know how to respond but then brian saying I let him walk all over me, I let him talk sexual to me as he was saying it was sexual harassment and that I should have scolded him. since I let him say that, brian said that made me look like a whore and like an easy girl. yeah, I let him say that but I didn't mean it in a way that made me look easy or as a whore. I just didn't speak up to him or scold him like I should have. what do u guys think? is brian right? or is he overreacting? should I have scolded alex? thank u for reading through it all!
Is brian right? or am I in the wrong?
Post Opinion