Amazon interview question

Sql code for joining 2 tables