Reddit interview question

Two SQL questions, and one python question