Amazon Interview Question

Threat model , code review