GitHub interview question

Write an API that fetches and puts data into a map