Amazon interview question

Implementing an API to handle login information