Amazon Interview Question

Asked to fast solve a complex data structure problem