Amazon interview question

Coding: find median from data stream