Neoxia interview question

compute some stats on the data