General Motors (GM) interview question

Getting data from Rest API.