Reddit interview question

Asked how to build a backend API being a frontend position