Walmart Global Tech interview question

How would you improve the performance of an API?