Incedo Interview Question

Tree height in coding round