Amazon interview question

Total based on resume