Uber Interview Question

Will not disclose, but common leetcode