Amazon Interview Question

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