Amazon Interview Question

Diameter of binary tree pseudo code