Design a streaming median structure | Amazon Interview Question