Publicis Sapient interview question

write a program for intersection of two databases