Amazon interview question

Solve a coding problem involving array manipulation under a timed online assessment