Given a stream of sensor data, design a sliding-window filter to identify and flag anomalous readings in real time.