Fetch interview question

Implement this backend api with these requirements...