Amazon interview question

They asked two sum , rotten oranges.