Amazon interview question

Secure code review with mitigations Threat model