Domanda di colloquio di eBay

I was asked to solve several algorithmic problems mostly about arrays