GlobalLogic Interview Question

some python and SQL question