Add Median in a stream interview problem