I was testing for the case if the tree contains only one node i.e root before creating queue. So the interviewer asked me about the effect of this extra if statement on the over all performance and asked me for the justification of the my decision and then amortized analysis ot time complexity.