Compute binary-tree diameter via return-only DFS | Meta Interview Question