Amazon Interview Question

Coding: find median from data stream