Rippling interview question

Parse JSON and calculate sum / average