Amazon Interview Question

The standard Amazon math question