f is a flag whose value helps in printing left & right part of the diameter only once
f = 0 ; int height_of_tree = height ( root ) ; int [ ] lPath = new int [ 100 ] ; int pathlen = 0 * height_of_tree ;