INDmoney Interview Question

Average SQL question on Joins groupby