SingleStore interview question

Tree based LC medium/hard question