Binary Tree Longest Path - Coding problem | OneNoughtOne