Pregunta de entrevista de ServiceTitan

Basic questions regarding binary tree, sets etc.