Amazon interview question

Coding: 286 + 432, no BQ