eBay interview question

It was a coding assessment