Ugh that's rough. Personally, I think that's a cruel interview tactic — especially for juniors who actually produce the correct answer. As a new dev you tend to assume that the person interviewing you is more experienced than you are (at least I did), and you don't necessarily expect trick questions. I would've done the same thing!
Lesson learned: take your time and question everything. Hope you land somewhere great!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Ugh that's rough. Personally, I think that's a cruel interview tactic — especially for juniors who actually produce the correct answer. As a new dev you tend to assume that the person interviewing you is more experienced than you are (at least I did), and you don't necessarily expect trick questions. I would've done the same thing!
Lesson learned: take your time and question everything. Hope you land somewhere great!