Anonymous Interview Question

Panda implementation of sql query