Google Interview Question

Difficult data structure and algorithms question