Return Records

From Amazon interviews, this coding interview problem asks you to read a log of API requests to three sign-in pages and return the response for each in order. Users start empty, logging in while already logged in fails, and credentials are case-sensitive. An interview question focused on processing records from an authentication system.

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Input Variables
Execution Result: