Uber Interview Question

Distance between siblings in trees, basic SQL queries.