eBay interview question

Algorithms and data structures question can't disclose