The interviewer was not prepared. They did not try to understand the solution, even though it was correct. I think they were absent-minded.
It was a little unfortunate, but that's okay. I just wanted to inform everyone that this can happen. Not everything is in your hands.
Tree Related Question:
DFS, BFS traversal.
The following metrics were computed from 4 interview experiences for the Amazon Software Engineer role in Palo Alto, California.
Amazon's interview process for their Software Engineer roles in Palo Alto, California is extremely selective, failing the vast majority of engineers.
Candidates reported having very negative feelings for Amazon's Software Engineer interview process in Palo Alto, California.