IBM interview question

Asked to take in data from an API and do calculations with it