Interview process is designed to reject most of the candidates by making false allegations on their code. Not even Google judge candidates based upon syntax. Most interviewers are rude and don't accept your answers or not willing to listen to you at all. It's all one sided interviews just made to fool candidates
Write a code in C++ because I doubt you copied simple tree traversal code from internet as you're so dumb for tree traversals.
Your code should compile in a single run otherwise you're rejected immediately.
The following metrics were computed from 1 interview experience for the Toptal Backend Engineer role in New Delhi, India.
Toptal's interview process for their Backend Engineer roles in New Delhi, India is extremely selective, failing the vast majority of engineers.
Candidates reported having very negative feelings for Toptal's Backend Engineer interview process in New Delhi, India.