Google interview question

Trees graphs and other core concepts