Pregunta de entrevista de mthree

Questions on data structures, space and time complexity. Live coding question based on binary trees