Fetch interview question

Create a backend api according to the instruction