Microsoft interview question

How to make API for efficient for user