Meta Interview Question

Basic SQL and python with test cases.