Domanda di colloquio di J.P. Morgan

coding question regarding summary statistics and check two tables whether consistent