Pine interview question

Build a backend API given requirements, System design