SingleKey interview question

The coding assessment included an API call