Skillz Interview Question

two SQL question, one python question