Amazon Interview Question

Coding: 286 + 432, no BQ