Accenture Interview Question

Write a sql query to join the table