Amazon Interview Question

Threat model, Java Code Review, Standard coding question