JPMorganChase Interview Question

Sql,Joins related questions. Create a table