Amazon Interview Question

Implementing an API to handle login information