Fractal Interview Question

Deep dive into SQL and Python