GlobalLogic interview question

some python and SQL question