Domanda di colloquio di Amazon

Math based question with simple calculations