Chubb interview question

Basic SQL and Python questions