Neudesic Interview Question

SQL solving questions. one thing was on tree