Fractal Interview Question

Oops concepts, SQL joins