Underlined interview question

I was asked to fetch data, make an api