IBM interview question

Programming question on python and SQL question