Array (NY) interview question

How do you design an API