Amazon interview question

How would you tackle this at work