Credit Karma interview question

SQL JOINS, Subquery, DISTINCT, Sum