Chubb Interview Question

Regarding SQL and Advanced python coding