Domanda di colloquio di Amazon

basic interview and math question about allocating resource.