IBM interview question

Two coding assessments in Python and SQL