Autobrains Interview Question

Build a tree and return its height