ServiceTitan Interview Question

Basic questions regarding binary tree, sets etc.