ADP Interview Question

Write a sql query to fetch the common items