Lyft interview question

1 python question dictionary problem 2 SQL