Capgemini interview question

Write Query joining 2 tables