Pine Interview Question

Build a backend API given requirements, System design