Noom Interview Question

Easy level coding problem data aggregation.