OM1 interview question

Loop through data and determine different things