Meta Interview Question

simple pandas task to mimic sql filtered query