DoorDash Interview Question

find a qualified list from another list.