### Motivation I want to add a code for finding the height of a tree in the tree algorithms ### Examples _No response_ ### Possible workarounds _No response_ ### Additional information _No response_