GoGuardian interview question

Simple SQL aggregation using group by and sum.