eBay Interview Question

It was a medium level leetcode code problem.