Kloudspot interview question

Q: Calculate the diameter of binary tree?