Tredence Interview Question

python , sql question