Meta interview question

Get Tree diameters Find peak numbers