Find height of a special binary tree whose leaf nodes are connected
Given a special binary tree whose leaf nodes are connected to form a circular doubly linked list, the task is to find the height of the tree. Examples: Input: Output: 2Explanation: The height of binary tree after recognizing the leaf nodes is 2. In the above binary tree, 6, 5 and 4 are leaf nodes an