Pregunta de entrevista de GIC

How would you design an API to serve a particular function?