Capital One interview question

Write code to send a request to an API and process the response