PSTech Interview Question

Algorithms complexity in trees.