Microsoft Interview Question

How to make API for efficient for user