Pregunta de entrevista de Amazon

Situation based question involving basic mathematical calculation