IBM interview question

OA coding test: sql + python