Pergunta de entrevista da empresa Amazon

basic interview and math question about allocating resource.