Amazon interview question

They are just some simple array problems.