Komodo Health interview question

SQL query to join two tables to get the data