There are two small problems with the discussion of solutions: estimation of time and space complexity.
Here's a small intro first, and a few questions at the end. It is a quite common standard interview.
One task is to merge intervals, and the other is to traverse trees.
The following metrics were computed from 39 interview experiences for the Meta Senior Software Engineer role in United Kingdom.
Meta's interview process for their Senior Software Engineer roles in the United Kingdom is extremely selective, failing the vast majority of engineers.
Candidates reported having very good feelings for Meta's Senior Software Engineer interview process in United Kingdom.