Domanda di colloquio di Amazon

Coding question based on array manipulation, not very clear and not enough information. Questions expected to clarify the problem.