New Minds interview question

Programming interview, both Python and SQL.