Zscaler Interview Question

A coding question on BST.