Deloitte Interview Question

how to write a API from scratch