eBay interview question

Nothing relevant to the role, Leetcode mostly.