Google Interview Question

Data structure and algorithms - 2 coding problems