Check about boundary cases. For example, in case of stream of numbers
Negative numbers
repeated numbers
increasing order
Decresing order
Reference