loanDepot Interview Question

How would you architect this API