Google interview question

How to maintain a fixed size heap for stream data