Incedo interview question

Tree height in coding round