Life360 interview question

Binary trees operations