Amazon interview question

Math based question with simple calculations