How would you solve a problem involving finding shared elements across multiple datasets efficiently?